Systems and methods for scripted content delivery

ABSTRACT

The present subject matter relates generally to systems and methods for adding interactive functionality to a website, other digital media objects, and computer processor applications. Systems and methods for adding functionality to content served by a first server, may include receiving, at a second server, a request from a client-computer for code to add purchase functionality to the content. The code may be sent to the client-computer based on the request. A further request may be received from the client-computer containing information about objects identified in the content as relating to the purchase functionality and a request for information about the objects. Information about the objects may be sent to the client-computer based on the further request. An instruction to complete the purchase may be received from the client-computer, and a confirmation of the completion of the purchase may be sent to the client-computer. The content may be an HTML document and the objects may be objects according to the HTML Document Object Model.

BACKGROUND OF THE INVENTION

The present subject matter relates generally to systems and methods foradding interactive functionality to a website, other digital mediaobjects, and computer processor applications.

Many websites offering items for sale implement a shopping cart.Visitors to the website can add an item to a shopping cart using a linkor a button. The link or button is often placed next to an image of theitem for sale. Once the visitor is finished selecting items to buy, hecan check out and purchase the selected items by supplying payment andshipping information using a form on the website.

The payment information submitted will usually be in the form of creditcard details. Information can also be in the form of a confirmation froma third party. For instance, the user can be redirected to a third partyin order to supply payment information to that party. The third partywill then send a reference confirming the payment on behalf of the user,confirming that payment has been received.

The shopping cart interface may be implemented as a server-sideapplication on the web-server hosting the website with the shopping cartfunctionality. The server may have access to a database of items forsale, and it can keep track of each user visiting the site and whattheir shopping cart contains. In some implementations, each page sentback to the user contains a short overview of the contents of theirshopping cart.

There are implementations of shopping cart functionality that do notrely on a server-side application that is running on the server hostingthe website. These may rely on a second web-server implementing shoppingcart functionality on behalf of the first one. For these applications,the pages on the first server may contain links enabling a visitor toadd items to his shopping cart, view the contents of his shopping cartand to check out and purchase the items in the shopping cart. All theselinks may be static links to pages on the second server.

In one such implementation, the owner of a first website containingitems for sale will register with a service provider who will provideshopping cart functionality. The owner of the first website may receivean account code and a code for each item for sale registered with theservice provider.

Each link added on the first website to enable the shopping cartfunctionality may be a static link to a page hosted by the serviceprovider. Each link may contain the account number. Each link to add anitem to the shopping cart may contain the code for that item.

Each time a visitor clicks any of these static links on the firstwebsite he is taken to a page on the service provider's server, but isredirected back to the first website after completing the task. The formto check out and the page to view the contents of the shopping cart maybe hosted from the service provider's servers.

SUMMARY OF THE INVENTION

When using an approach in which clicking on static links directs a userto a third party service provider's server, the user may see that theyare being redirected to a different URL, and may at times receive awarning when being redirected between secure and non-secure websites.This behavior can raise concerns of inferior security and dataprotection with users, and can in turn lead to a reduction in sales.

Embodiments of the present invention can prevent this behavior andfurther enhance the shopping cart application, and otherfunctionalities, without requiring such functionality to be on theserver from which the website is hosted.

The present subject matter generally deals with the use of applicationprogramming interface (API) that can be included in a web-page, or otherapplication, such that functionality is added to the application when itis presented to a requesting user. Embodiments may include methods foradding functionality to an automated application served by a firstprovider. For example, an application may be served by a first providerfor presentation to a user at a client-side computing device. As part ofthe presentation of the application to the user, the application mayrequest code from a second service provider. Generally, such methods mayinclude receiving, at the second provider, a request from aclient-computing device for code to add functionality to theapplication. The second provider may then send the code to theclient-computing device. Additionally, the client-computing device mayrequest additional information from the second provider, includinginformation about objects identified in the application as relating tothe functionality. The second provider may send such information aboutthe objects to the client-computing device.

The above methodology can provide an efficient way for smaller serviceproviders to present sophisticated content by using applications thatautomatically draw on code from the second service provider, which maybe a service provider with specialized content development, specialaccess, deeper resources, etc.

For ease of understanding, embodiments are described in which purchasefunctionality may be added. However, it should be understood that theinvention is not limited to such implementations, and can providefunctionality of various sorts to web-pages, digital media objects andother computerized applications.

Embodiments include methods for adding functionality to a computerizedapplication, such as a web-page served by a first web-server. Themethods may include receiving, at a second web-server, a request from aclient-computer for code to add purchase functionality to the web-page,or other application. The second web-server may send the requested codeto the client-computer. The second web-server may then receive a requestfrom the client-computer containing information about objects identifiedin the web-page as relating to the purchase functionality and a requestfor information about the objects.

The second web-server may send information about the objects to theclient-computer. The second web-server may receive an instruction tocomplete the purchase from the client-computer, and send a confirmationof the completion of the purchase to the client-computer.

Embodiments may also include wherein the web-page is an HTML documentand the objects are objects according to the HTML Document Object Model.

Embodiments may also include sending a request to the client-computerfor a delivery address when at least one of the items to be purchasedindicates physical delivery, and/or sending a hyperlink to the addresswhere the hem can be downloaded to the client-computer when at least oneof the hems to be purchased indicates on-line delivery. Depending onwhether the items to be purchased are virtual or physical, the consumermay supply information sufficient for electronic or physical delivery.For instance, an e-mail address may be requested for a downloadablefile, whereas a postal address may be required for physical delivery.

Aspects of the above features may provide expanded capabilities withrespect to customizing content, such as e-commerce content, that isprovided to a requesting user from the second web-server. For example,embodiments may include determining product pricing, productavailability, and/or instructions at the second web-server based on afirst web-server identity, a first web-server API key, a firstweb-server URL, and/or a first web-server domain.

Embodiments may include determining product pricing, productavailability, and/or instructions at the second web-server based on, forexample, a consumer location, a website that referred a user to firstweb-server, items already in a shopping cart of the web-page, and/or thepresence of a particular cookie in a web browser that is displaying theweb-page.

Embodiments may include determining product pricing, productavailability, and/or instructions at the second web-server based on, forexample, a consumer identity, a membership level of a requesting user,and/or a purchase history of a requesting user.

Embodiments may include identifying a mobile device product in ashopping cart for the web-page, and automatically requesting a phonenumber and a carrier to deliver content over the air.

Embodiments may include wherein the code includes at least one of audiopreview functionality and video preview functionality.

Embodiments may include wherein an item purchased by a consumer is adownloadable item that is not currently available. In such embodiments,the method may also include providing an authorization code to allowdownloading of the item when it becomes available, and/or automaticallysending the consumer an electronic message when the item becomesavailable for downloading.

Further advantages of the present subject matter will become apparent tothose of ordinary skill in the art upon reading and understanding thefollowing detailed description of the preferred embodiments.

BRIEF DESCRIPTION OF THE DRAWINGS

Referring to the exemplary drawings wherein like elements are numberedalike in the accompanying Figures:

FIG. 1 depicts an exemplary network model;

FIG. 2 depicts an exemplary network model according to disclosedembodiments; and

FIG. 3 depicts an exemplary web-page with functionality according todisclosed embodiments.

DETAILED DESCRIPTION OF THE INVENTION

Embodiments of the present subject matter relate to adding functionalityto computerized applications, such as, for example, implementing onlinepurchase functionality on a website. The website may be hosted on aserver which does not implement online purchase functionality. A usermay visit the website and complete a purchase without leaving thewebsite or being redirected by clicking links to a different server.

A web-server can serve web-pages to visitors. The web-pages may includeHyper Text Markup Language (HTML), JavaScript, Cascading Style Sheet(CSS) and Extensible Markup Language (XML). A single file may contain acombination of these or only a single one.

For example, as depicted in FIG. 1, when a user is using a client-sidecomputer 101 to visit a website hosted on server 102, the web-server 102typically sends web-pages to a web browser running on computer 101,which displays them to the user. When a user sends a request 110 for aweb-page to a web-server, the web-server may fetch content from a numberof sources, such as requesting 130 and receiving 140 content from server103, compile it into a single piece of data and send it to the user as aweb-page in 120. The web-server may also fetch the content of a singlefile and send it unmodified to a user. Such a web-page is known as astatic web-page.

Embodiments of the present subject matter allow for the implementationof online purchase functionality on static web-pages, or on otherweb-pages without relying on the web-server serving the pages beinginvolved in the purchase functionality. For example, as depicted in FIG.2, a web-page 210 may present content 220 and 230. Content 220 is servedby server 222. The web-page 210 also contains API that causes code to berequested from a second server 232, so as to provide content 230. Thus,in the example of e-commerce, the present subject matter may provide forcheckout functions that are remote from the first server. That is, thecheckout functions may be communicated directly between the client andthe second server via the APIs without interaction of the first server.This may also be accomplished in a way that the presentation to the useris maintained without disruption or an appearance of shifting betweenservers. For example, the content 220 may provide the overall appearanceof a web-page. Content 230 may be presented within this frame, and eventailored to match characteristics identified with the first server, insuch a way that, as the user interacts with content 230, content 220 isundisturbed.

The interaction between the client and content 230 can include shoppingcart functionality, based on communications with a separate vendor,and/or payment transactions involving a third-party payment service. Thecommunication between the second server and the vendors/services can bemaintained independent from communications with the first server. Ofcourse, the client, second server, vendor or services may providespecific information to the first server if so desired, or required fora particular transaction. However, such communications are not necessaryfor the second server to provide the various functionalities describedherein.

An HTML document, whether implemented in Standard Generalized MarkupLanguage (SGML) or Extensible Markup Language (XML) or some otherserialization typically consists of a number of nested elements or tags.Each tag can be of a different type and can have a number of associatedproperties.

In many browsers it is possible to programmatically access and edit theHTML document using JavaScript or some other scripting language. Manybrowsers implement an API allowing JavaScript code to access objects inan HTML page. This API is commonly known as the HTML Document ObjectModel (DOM). In particular, the API gives access to an objectrepresenting the whole document. It is further possible to accesschild-elements of this object. By recursively accessing the childobjects of the document object, it is possible to access and modify anyelement in the HTML document. It is also possible to add new elements aschild elements of an existing element.

JavaScript content can be inserted directly into an HTML document bycopying the content of the script into the document and enclosing it inan appropriate element, or by embedding an element in the HTML documentwith a reference to a separate file containing the script. The referencecan be to a script located on an external server.

With further reference to FIG. 2, in embodiments, online purchasefunctionality may be added to a static web-page, e.g. 210, served from afirst web-server 222, by including an element with a reference toJavaScript content located on a second web-server 232 in the page. Whena web browser on computer 212 loads the static web-page 210 via exchange224, 226, it will also load the JavaScript content from the secondserver 232 via exchange 234, 236, and execute it. This may result in adisplay element, such as element 230, that is not expressed by thestatic web-page instructions initially served by first web-server 222.JavaScript content sent from the second server 232 may be dynamicallygenerated at the second server each time a browser requests it, and maybe tailored in myriad ways to suit a customer or vendor's needs.

The JavaScript code received from the second web-server 232 in 236 maycontain instructions that add online-purchase functionality to thestatic web-page 210. In embodiments, the code may traverse the elementsin the static web-page and change them in order to add online purchasefunctionality.

With reference to FIG. 3, elements on the static page may containinformation about a product including, for example, a name, e.g. 310, atitle, e.g. 320, a picture, e.g. 330, a price, e.g. 340, stockavailability information, a description and buttons, e.g. 350, 352 toadd elements to a shopping cart, e.g. 360. The element may also includea code identifying the product in a product database, e.g. 238,accessible to the second web-server. The JavaScript code may verify theinformation with the second server and update it if it is incorrect. Itmay also add functionality, such as enabling the functionality of thebutton.

The JavaScript code may cause further information to be loaded from thesecond server without re-loading the page. One way of doing this is tocause a script-tag to be added to the static page which causesJavaScript code to be loaded from the second server. The script tag willcontain a URL to the script on the second server. The URL may contain aquery-string. This query string may contain information about the scriptto be requested and what information it should include. The query stringmay for instance include a product reference, and the script to be sentback may include information about the product corresponding to thereference.

Similarly, the script may cause a list of the items a user has added totheir shopping cart 360 to be displayed on the static page. The staticpage may contain an element with an identifier marking it to the scriptas the place to insert such a list.

In an embodiment of the invention the script uses web browser cookies tokeep track of what items the user has added to the shopping cart 360. Inthis case it is possible to display a list of items in the shopping cartwithout communicating with the second server. The script may also causea notification to be sent to the second server whenever a user addssomething to the shopping cart such that the server can keep track ofwhat items are in the shopping cart. The server may then send a list ofitems in the shopping cart to the browser each time the list ispresented to the user. With this approach it is possible to track thecases where a visitor adds an item to the shopping cart but does notpurchase it.

In embodiments the static page may contain an element marked as theplace to insert a checkout form, which the user can utilize to completethe purchase. A form may be inserted into this element once the userclicks a link or a button to purchase the items in the shopping cart.The elements contained in the form may be determined by the items in theshopping cart. The script may query the second web server to determinewhat elements should be contained in the form. Where the shopping cartonly contains items that will be delivered electronically it may besufficient to collect payment information and an e-mail address. If thecart also contains items that will be shipped physically, the form mayalso contain elements for collecting a delivery address.

In embodiments, the purchase may be completed by submitting theinformation in the checkout form to the second web-server. Theinformation in the form may be submitted to the server as a request fora script where the information is contained in the query-string of theURL of the script. A response may be contained in the script that issubmitted back to the user. The script may cause a confirmation to bedisplayed in the user's browser, if the second server was not able tocomplete the purchase, the script may cause the form to be highlightedsuch that the user may correct missing or incorrect data.

In embodiments, the first server may also monitor the occurrence ofevents, such as JavaScript events, in order to add additional codeand/or information. Generally, this may include the first servermonitoring for occurrence of events between the client and the secondserver, after the first server provides initial instructions to theclient. When the specified event involving the client-second serverinteraction is detected, the first server may then serve additionalinformation or code. For example, a vendor may desire to provide aclient with a reward upon successful completion of a given transaction.The first server can recognize when the identified event occurs, in thiscase providing the consumer with a receipt/response with confirmedbilling information. Such monitoring functions can be included asadditional instructions that are served by the first server along withthe APIs as disclosed herein. When the identified event is recognized,the first server may provide additional code and/or information to theclient, such as code that provides access to a function related to thefirst server's site. Additionally, the nature and details of the eventmay be analyzed to determine the appropriate response. For example, ifthe event reflects the purchase of a particular music album, the vendormay desire to provide the user with access to videos associated with thealbum. This can be accomplished by the first server recognizing theevent, e.g. purchase of the album, and providing code or otherinformation to access online items, e.g. the videos.

As mentioned above, the code and information delivered and/or presentedto the user can be customized by the second server based on informationreceived from the client computer and/or the first server. For example,product pricing and availability may vary depending on such factors aswhere the customer is physically located, what website the customer isaccessing, or other special promotions that the customer or vendor Maywant to implement. Such factors can be considered by the second serverby identifying first web-server information, such as a first web-serveridentity, a first web-server API key, a first web-server URL, firstweb-server domain, etc. The first web-server information may be includedin the static web-page information served to the user, and relayed tothe second web-server by the client computer when requesting code and/orinformation.

Of note, are implementations where the code and/or information providedto the user is tailored in such a way as to mimic the appearance oridentity of the first server, or vendor associated with the firstserver. For example, presentations to the user can be tailored such thatshopping carts, receipts, and/or subsequent communications to the userinclude brand names, images, addresses, and the like, associated withthe first server. This functionality can serve several purposesincluding creating an improved image and apparent capabilities for asmall website, or maintaining customer comfort and confidence in dealingwith a particular vendor, rather than a third-party. Therefore,embodiments may include where responses called by a particular API maybe different depending on the identity of the first server.

Similar determinations and customizations may be made based on consumerinformation such as, for example, a consumer location, consumeridentity, a membership level of a requesting user, and/or a purchasehistory of a requesting user. Thus, the presentation can be furthertailored to the specific individual to whom it is presented.

The system can also dynamically update the correct code or informationto provide by taking into account information such as a website thatreferred the user to the first web-server, items already in a shoppingcart of the web-page, and/or the presence of a particular cookie in aweb browser that is displaying the web-page.

These various types of functionality may significantly improve thefunction of the second server delivery, for example, by improvingflexibility across wide markets, and customizing the presentation to theuser, and the user's circumstances.

In addition to determining pricing and availability for products basedon the above factors, embodiments may also use such factors indetermining appropriate instructions, such as order instructions. Forexample, based on known or detected customer, website and/or statusinformation detailed above, certain order instructions may be foreclosedor determined automatically. Thus, as part of the content deliveryprocess, options such as delivery carriers, pricing, etc., can beadjusted on the forms presented to the user.

Embodiments may also include automatically identifying when a mobiledevice product is added to the shopping cart. When this is the case, thesystem, e.g, the second server 232, may then automatically request aphone number and a carrier to deliver the relevant product over the air.The system may also identify an appropriate entity for fulfillment of anorder from the client. This can take many forms, including, for example,using geolocation of the client, established service agreements, and/oravailable stock at known providers or shipping locations, e.g,warehouses. The second server 232 may independently access databases andinformation that may not be readily available or accessible by the firstserver. This access can provide improvements in the capabilities ofunsophisticated, or unaffiliated, independent websites with minimalinvestment on the part of the independent site. As an added benefit,this improved service can be provided in a way that activities of thesecond server are transparent to the user, thus maintaining consumerconfidence and a seamless browsing experience.

The second server may identify the user and associate the user withpermissions that are Pot limited to the first server. This may allow,for example, for a user profile to be used to gain access to contentthrough various websites served by different first servers withoutproviding user information to the first servers. Rather, after accessingportions of the content that are served by the first server, APIs may beused that allow users to identify themselves to the second server,without sharing that information with the first server. Again, thisservice can greatly reduce the burden and complexity of performing taskssuch as authentication at the first server level, and can also providebenefits in user security by relying on a profile that can be appliedwithout providing information from the user to the first server. Inembodiments, the second server can authorize code and/or information topass on to the client or the first server based on the independentauthentication of the user.

With further reference to FIG. 3, embodiments may also include whereinthe code presents preview functions, such as audio previews 370, and/orvideo previews. These may be activated without purchasing the relevantitem, and can also be controlled to limit the amount of times thepreviews are accessible from a given client computer, domain, within agiven timeframe, or other limitations.

Embodiments may also provide solutions involving the sales and/ordistribution of downloadable items that are not available at aparticular time. In such circumstances, the second server may provide anauthorization code to allow for downloading the item when it becomesavailable. The second server may also cause an electronic message to besent to the consumer when the item becomes available for downloading.

Embodiments may also provide for obtaining additional information inways that are not achievable by conventional systems. For example, fromthe level of the second server, information regarding a particular usermay be obtained as the user browses and engages with websites acrossdifferent domains. Therefore, a second server, that is not the client'sInternet Service Provider (ISP), such as 232, may obtain valuableinformation that is not available to systems that look, for example, atthe traffic of a given website or server such as 102. The gathering ofthis information may be premised on a session cookie that tracks theclient's history across domains, or can be implemented in associatedwith the APIs that contact the second server as the user accessesvarious web-pages using those APIs. Thus, a user that accesses a varietyof sites having no formal affiliation, and/or are distributed acrossdifferent internet service regions, can be tracked by the second serverthat provides APIs to the sites. This tracking function may also providean easy way for a domain to implement a tracking service with respect tocustomers, without the complexity of having to host the specific codeand function on their site.

In addition, embodiments of the present invention further includecomputer-readable storage media that include program instructions forperforming various computer-implemented operations. The media may alsoinclude, alone or in combination with the program instructions, datafiles, data structures, tables, and the like. The media and programinstructions may be those specially designed and constructed for thepurposes of the present subject matter, or they may be of the kindavailable to those having skill in the computer software arts. Examplesof computer-readable storage media include magnetic media such as harddisks, floppy disks, and magnetic tape; optical media such as CD-ROMdisks; magneto-optical media such as floptical disks; and hardwaredevices that are specially configured to store and perform programinstructions, such as read-only memory devices (ROM) and random accessmemory (RAM). Examples of program instructions include both machinecode, such as produced by a compiler, and files containing higher levelcode that may be executed by the computer using an interpreter.

While the invention has been described with reference to exemplaryembodiments, it will be understood by those skilled in the art thatvarious changes may be made and equivalents may be substituted forelements thereof without departing from the scope of the invention. Inaddition, many modifications may be made to adapt a particular situationor material to the teachings of the invention without departing from theessential scope thereof. Therefore, it is intended that the inventionnot be limited to the particular embodiment disclosed as the best oronly mode contemplated for carrying out this invention, but that theinvention will include all embodiments falling within the scope of theappended claims. Also, in the drawings and the description, there havebeen disclosed exemplary embodiments of the invention and, althoughspecific terms may have been employed, they are unless otherwise statedused in a generic and descriptive sense only and not for purposes oflimitation, the scope of the invention therefore not being so limited.Moreover, the use of the terms first, second, etc. do not denote anyorder or importance, but rather the terms first, second, etc. are usedto distinguish one element from another. Furthermore, the use of theterms a, an, etc. do not denote a limitation of quantity, but ratherdenote the presence of at least one of the referenced item.

What is claimed is:
 1. A method for adding purchase functionality toapplication content served to a client-computer by a first server, themethod comprising: providing API included in the application contentserved by the first server; at a second server including amicroprocessor, receiving a first request from the client-computer forclient-side code to add purchase functionality to the applicationcontent being served by the first server, the first requestautomatically initiated by the API without interaction by a user of theclient-computer; generating first client-side code based on the firstrequest, the first client-side code including instructions for addingthe purchase functionality to the application content; sending the firstclient-side code to the client-computer using the microprocessor,wherein said first client-side code includes instructions that cause theclient-computer to insert a script element enabling the purchasefunctionality into the application content; receiving a second requestfrom the client-computer for second client-side code, the second requestincluding information associated with an item included in a virtualshopping cart of the application content; generating second client-sidecode based on the second request, the second client-side code includinginstructions for displaying a checkout form that the user can utilize torequest purchase of the item; sending the second client-side code to theclient-computer using the processor; receiving a third request forclient-side code from the client computer, the third request includingan instruction to purchase the item and payment information; generatingthird client-side code based at least in part on processing theinstruction to purchase the item and the payment information, the thirdclient-side code including instructions for displaying an indication ofwhether the purchase was completed or not; and sending the thirdclient-side code to the client-computer using the processor.
 2. Themethod of claim 1, wherein the information associated with the itemincludes a price for the item.
 3. The method of claim 1, wherein thepurchase functionality includes an icon configured to initiate thesecond request.
 4. The method of claim 1, wherein the API is configuredto include indicia unique to the first server in the first request, suchthat responses called by the API may be different depending on theidentity of the first server.
 5. The method of claim 1, whereingenerating at least one of the first client-side code or the secondclient-side code is based at least in part on one or more of a consumerlocation, a consumer identity, a membership level of a requesting user,or a purchase history of a requesting user.
 6. The method of claim 1,further comprising: identifying whether the item is accessible via amobile computing device; and if the item is accessible via a mobilecomputing device, including instructions in at least one of the secondclient-side code or the third client-side code operable to obtain anaddress for a mobile computing device for electronic delivery of theitem.
 7. The method of claim 1, further comprising: identifying that theitem is accessible by on-line delivery; and sending a hyperlink to alocation where the item can be downloaded to the client-computer.
 8. Themethod of claim 1, wherein the API is further configured to allow a userof the client-computer to identify themselves to the second server,without sharing that information with the first server.
 9. The method ofclaim 1, wherein at least one of the first client-side code or thesecond client-side code is configured to provide a payment service. 10.The method of claim 1, wherein the second server automaticallydetermines an instruction related to the purchase based on at least oneof a first server identity, a first server API key, a first server URL,and a first server domain.
 11. The method of claim 1, wherein the secondserver automatically determines an instruction related to the purchasebased on a particular cookie in a web browser that is displaying theapplication content.
 12. The method of claim 1, wherein the applicationcontent is configured to be executed by at least one of a web browser ora network-enabled application running on the client-computer.
 13. Amethod for adding functionality to application content served to aclient-computer by a first server, the method comprising: providing APIto the application content served by the first server; at a secondserver including a microprocessor, receiving a first request from theclient-computer to add purchase functionality to the application contentbeing served by the first server, the first request generated by theAPI; generating first client-side code based on the first request, thefirst client-side code including instructions for adding the purchasefunctionality to the application content; sending the first client-sidecode to the client-computer using the microprocessor, wherein said firstclient-side code includes instructions configured to present aninterface that allows purchase of an item; receiving a second requestfrom the client-computer, the second request including a productreference for the item; generating second client-side code based on thesecond request, the second client-side code including information aboutthe item; sending the second client-side code to the client-computerusing the microprocessor; and adding an entry to a log of user activityacross different domains based on at least one of receipt of theAPI-generated requests or a session cookie that tracks the user'shistory across domains.
 14. The method of claim 13, further comprising:receiving a third request from the client computer, the third requestincluding an instruction to purchase the item and payment information;and sending third client-side code to the client-computer, the thirdclient-side code including a confirmation of the completion of thepurchase encoded using the scripting language and instructions to causethe client-computer to display the confirmation using themicroprocessor.
 15. The method of claim 14, wherein the second serverautomatically determines an instruction related to the purchase based onat least one of a first server identity, a first server API key, a firstserver URL, a first server domain, and a particular cookie in a webbrowser that is displaying the application content.
 16. The method ofclaim 13, wherein at least one of product pricing and productavailability are determined by the second server based on at least oneof a first server identity, a first server API key, a first server URL,and a first server domain.
 17. The method of claim 13, wherein at leastone of product pricing and product availability are determined by thesecond server based on a website that referred a user to the firstserver, the presence of a particular cookie in a web browser that isdisplaying the application content.
 18. The method of claim 13, whereinthe API is provided by an operator of the second server.
 19. The methodof claim 13, wherein the purchase functionality includes a purchasewindow that is embedded by the application content presented on theclient-computer within other content served by the first server.
 20. Themethod of claim 13, wherein the appearance of the purchase window isbased at least in part on information associated with the first server.